<template>
  <div>
    <h2>logo组件</h2>
  </div>
</template>
<script>
import bus from '@/utils/bus'
export default {
  name: 'logoDlalog',
  mounted() {
    bus.$on('commonLogoEdit', this.setLogo())
  },
  methods: {
    setLogo() {
      console.log('修改 logo')
    }
  },
  beforeDestroy() {
    bus.$off('commonLogoEdit', this.setLogo())
  }
}
</script>
